home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 41
/
Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso
/
Aminet
/
comm
/
net
/
tf02.lha
/
TinyFugue
/
tf-lib
/
finger.tf
< prev
next >
Wrap
Text File
|
1995-08-12
|
976b
|
28 lines
; finger - get user information. Arguments are like unix finger:
; /finger user@host
; /finger user
; /finger @host
; /finger
; This is more complicated than it needs to be, just to make it act nicely.
/def -i finger = \
/test regmatch("([^@]*)@?(.*)", {*})%; \
/let user=%{P1}%; \
/let host=%{P2-localhost}%; \
/def -i _finger_exit = \
/purge -i -msimple -h"CONNECT|CONFAIL|DISCONNECT {finger@%{host}}*"%%;\
/fg ${world_name}%; \
/def -i -ag -msimple -h'REDEF world finger@%{host}'%; \
/addworld finger@%{host} %{host} 79%; \
/purge -i -msimple -h"REDEF world finger@%{host}"%; \
/def -i -ag -mglob -h'CONNECT {finger@%{host}}*' -p%{maxpri} = \
/fg finger@%{host}%%; \
/send -- %{user}%; \
/def -i -ag -mglob -h'DISCONNECT {finger@%{host}}*' -p%{maxpri} = \
/_finger_exit%; \
/def -i -mglob -h'CONFAIL {finger@%{host}}*' -p%{maxpri} = \
/_finger_exit%; \
/connect finger@%{host}